home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1842 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: tudelft.nl!news
  2. From: Ejo Schrama <schrama@geo.tudelft.nl>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: stack overflow
  5. Date: 13 Jan 1996 09:41:01 GMT
  6. Organization: TU Delft
  7. Message-ID: <4d7und$d2v@mo6.rc.tudelft.nl>
  8. References: <1996Jan7.231111.111385@kuhub.cc.ukans.edu> <4d3npc$d9m@news.bridge.net>
  9. NNTP-Posting-Host: ge8.geo.tudelft.nl
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. David Byrden <100101.2547@compuserve.com> wrote:
  16. >
  17. >Stack overflow means the program used more stack space than was 
  18. >available. A portion of the stack is used each time you enter a 
  19. >function, it is where the automatic locals go. It is releaased 
  20. >when you return.
  21. >
  22. >You may simply need to recompile or relink and specify a larger
  23. >stack, or you may have a bug causing a function to call itself
  24. >eternally.
  25. >
  26. >    David
  27. >
  28. >
  29.  
  30. The problem stack overflow may also be caused by compiler limitations.
  31. Example: I'm working on a rather large orbit determination program,
  32. many classes, many routines and some with internal tables. Result:
  33. it runs perfectly fine under unix, (HP/UX), but categorically refuses
  34. to run under borland 3.1, even the dos version. Reason: the stack 
  35. has to fit within one code segment. Remedy: i'm going to try something
  36. else than borland's 3.1 compiler, possibly djgpp.
  37.  
  38. Ejo 
  39.  
  40.